From: Zeeshan Ali (Khattak) Date: Mon, 17 Feb 2014 01:17:46 +0000 (+0000) Subject: location: disconnect from 'g-properties-changed' signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2768 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7c3892f5a2702de162f97fe2fe18a7842ba48aa2;p=gnome-shell.git location: disconnect from 'g-properties-changed' signal https://bugzilla.gnome.org/show_bug.cgi?id=723684 --- diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 6cf94eed3..d7243c13c 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -119,7 +119,8 @@ const Indicator = new Lang.Class({ } this._proxy = proxy; - this._proxy.connect('g-properties-changed', Lang.bind(this, this._onGeocluePropsChanged)); + this._propertiesChangedId = this._proxy.connect('g-properties-changed', + Lang.bind(this, this._onGeocluePropsChanged)); this._updateMenuVisibility(); this._syncIndicator(); @@ -136,6 +137,10 @@ const Indicator = new Lang.Class({ }, _onGeoclueVanished: function() { + if (this._propertiesChangedId) { + this._proxy.disconnect(this._propertiesChangedId); + this._propertiesChangedId = 0; + } this._proxy = null; this._syncIndicator();